<template>
  <div>
    <div
      class="container"
      id="container"
      style="width: 100%; height: 800px"
    ></div>
  </div>
</template>


<script>
export default {
  data() {
    return {
      map: "",
    };
  },
  mounted() {
    this.darwMap();
  },
  methods: {
    darwMap() {
      var map = new BMapGL.Map("container"); // 创建地图实例
      var point = new BMapGL.Point(116.404, 39.915); // 创建点坐标
      map.centerAndZoom(point, 15); // 初始化地图，设置中心点坐标和地图级别
      map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放
    },
  },
};
</script>


<style>
</style>